<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE>
<html>
<head>
	<jsp:include page="../header.jsp">
		<jsp:param value="新建班级" name="title"/>
	</jsp:include>
	<script type="text/javascript">
		function dow(){
			$('.ui.labeled.icon.sidebar')
				.sidebar('setting', 'transition','overlay')
				.sidebar('toggle');
		}
		$(function(){
			$('.link').popup({
			    position:'bottom center'
			  })
			;
			$('select.dropdown')
			  .dropdown()
			  ;
		});
		function logout(){
			var isLog = confirm("你确定要注销吗？");
			if(isLog){
				location.replace("logout.jsp");
			}
		}
	</script>
</head>
<body>
		<jsp:include page="../menu/menue.jsp"></jsp:include>
		<div class="teacher-content" style="margin-left: 450px; margin-right: 400px; margin-top: 50px;">
	<form  method="post" class="ui form create-form">
		<!-- 如果是新建这里没有值 -->
		<input type="hidden" name="cid" value="${c.id }">
		<div class="ui warning form segment">
		  <div class="ui warning message">
		    <div class="header" style="text-align: center;">
		    <c:choose>
		    	<c:when test="${erro == null }">
		    		新建班级
		    	</c:when>
		    	<c:otherwise>
		    		${erro }
		    	</c:otherwise>
		    </c:choose>
		    </div>
		  </div>
		    <div class="field">
		      <label>班级名称*</label>
		      <input placeholder="班级名称" type="text" name="className">
		    </div>
		  <div class="field">
			    <label>班级经理*</label>
			    <input placeholder="班级经理" type="text" name="classManager">
		  </div>
		    <div class="field">
		      <label>班主任*</label>
		      <input placeholder="班主任" type="text" name="classTeacher">
		    </div>
		    <div class="field">
			    <label>班级类型</label>
			    <select class="ui fluid dropdown" name="classType">
				    <option value=""}>无</option>
				    <option value="1"}>高中部</option>
				    <option value="2"}>研发部</option>
			    </select>
		  </div>
		  <button class="ui button" type="submit">${empty stu ?'创建':'保存' }</button>
		</div>
	</form>
	</div>
</body>
</html>